/**
* @file   ProfileManagerTest.cpp
* @brief  Implementation file for class ProfileManagerTest
* @date   2011-04-12 00:26:42
* @author Yanze Lian
* @email  <yanzel@gmail.com>
*/

#include "stdafx.h"
#include "ProfileManagerTest.h"
#include "..\..\VideoEditor\VideoEditor\Classes\ProfileManager.h"

#pragma comment(lib, "strmiids.lib")


class CComLibrary
{
public:
	CComLibrary() { CoInitialize(NULL); }
	~CComLibrary() { CoUninitialize(); }
}g_ComLibrary;


CPPUNIT_TEST_SUITE_REGISTRATION(ProfileManagerTest);

ProfileManagerTest::ProfileManagerTest()
{
}

ProfileManagerTest::~ProfileManagerTest()
{
}

void ProfileManagerTest::setUp()
{
	CoInitialize(NULL);
}

void ProfileManagerTest::tearDown()
{
	CoUninitialize();
}

void ProfileManagerTest::testCreateProfile()
{
	ProfileManager profileManager;
	IWMProfile*	pIWMProfile	= NULL;
	bool res = profileManager.CreateProfile(pIWMProfile);
	CPPUNIT_ASSERT_EQUAL(true, res);
}

